package com.sgcc.system.api;

import com.sgcc.common.core.domain.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import com.sgcc.common.core.constant.ServiceNameConstants;
import com.sgcc.common.core.web.domain.AjaxResult;
import com.sgcc.common.core.web.page.TableDataInfo;
import com.sgcc.system.api.domain.SysRole;
import com.sgcc.system.api.factory.RemoteRoleFallbackFactory;

/**
 * 用户服务
 * 
 * @author sgcc
 */
@FeignClient(contextId = "remoteRoleService", value = ServiceNameConstants.SYSTEM_SERVICE, fallbackFactory = RemoteRoleFallbackFactory.class)
public interface RemoteRoleService
{
    /**
     * 通过用户名查询用户信息
     *
     * @param username 用户名
     * @return 结果
     */

 
    @RequestMapping(value = "/role/listActiviti")
	public TableDataInfo selectRoleList(@RequestBody SysRole role);
    
    
    @GetMapping(value = "/role/getInfoISC")
    public R<SysRole> getInfoISC(@RequestParam("roleId") String roleId);
   
    @PostMapping(value = "/role/addISC")
    public R<Integer> addISC(@Validated @RequestBody SysRole role);
    
    @PutMapping(value = "/role/editISC")
    public R<Integer> editISC(@Validated @RequestBody SysRole role);
}
